package com.example.criminalintent;

import java.util.UUID;

import android.support.v4.app.Fragment;

public class CrimeActivity extends SingleFragmentActivity {
	

//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_fragment);
//
//        FragmentManager fm = getSupportFragmentManager();
//        Fragment fragment = fm.findFragmentById(R.id.fragmentcontainer);
//        if(fragment == null){
//        	fragment = new CrimeFragment();
//        	fm.beginTransaction().add(R.id.fragmentcontainer, fragment).commit();
//        }
//    }

	@Override
	protected Fragment createFragment() {
		// TODO Auto-generated method stub
		UUID crimeId =(UUID) getIntent().getSerializableExtra(CrimeFragment.EXTRA_CRIME_ID);
		
		return CrimeFragment.newInstance(crimeId);
			
//		return new CrimeFragment();
	}


}
